package fitnesshub.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 消费记录
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ConsumptionRecord {
    private Integer recordId;
    private Integer memberId;
    private String consumptionType;
    private BigDecimal amount;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime consumptionDate;

    private Integer relatedId;
}
